<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/c-rt" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>Test Result</title>
		<link rel="stylesheet" href="css/global.css" type="text/css"/>
		<style type="text/css">
		<!--
		body{
			background-color:#f8ffd3;
			margin:8px;
		}
		-->
		</style>
		<script>
		function showErr() {
			var isHidde = document.all.isHidde.value;
			//alert(isHidde);
			if( isHidde == "true" ) {
				document.all.errdiv.style.display='block';
				document.all.isHidde.value= 'false';
				document.all.showbtn.value="Hide Details";
			} else {
				document.all.errdiv.style.display='none';
				document.all.isHidde.value= 'true';
				document.all.showbtn.value="Show Details";
			}
		}
		</script>
	</head>
	<body onload="showErr();">
		<table border=0 cellpadding=0 cellspacing=0 class="backtable"
			width="100%" align="center">
			<tbody>
				<tr>
					<td valign="top" height="100%">
						<table width="100%" border="0" cellspacing="1" cellpadding="2">
							<tr>
								<td width="10%">
									&nbsp;
								</td>
								<td width="80%">
									&nbsp;
								</td>
								<td width="10%">
									&nbsp;
								</td>
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									<table width="0%" border="0" cellspacing="0" cellpadding="2">
										<tr>
											<td>
												<img src="img/sign_alert.gif"/>
											</td>
											<td style="color:#505050">
												<b>Error Message!</b>
											</td>
										</tr>
									</table>
									<hr/>
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>

								<td>
									PossibleReason:
									<font color="#FF0000"><c:set value="${exception}"
											var="ee" /> <jsp:useBean id="ee" type="java.lang.Exception" />
										<%=ee.getMessage()%> </font>
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									<table id="errdiv" align="center">
										<tr>
											<td>
												<%
												ee.printStackTrace(new java.io.PrintWriter(out));
												%>
											</td>
										</tr>
									</table>
									<input type="hidden" id="isHidde" value="false" />
									<input type="button" id="showbtn" value="Show Details" class="input_button"
										onclick="showErr();" />
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>
